package com.itmuch.cloud.study.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

import com.itmuch.cloud.study.idgen.api.IdGenApi;
import com.itmuch.cloud.study.service.IdGenService;

@RestController
public class IdGenController implements IdGenApi {
	@Autowired
	private IdGenService idGenService;

	public Long genIdByModule(String module) {
		return idGenService.genId(module);
	}

	public Long genId() {
		return idGenService.genId("default");
	}

}
